/**
 * @author ckf
 * @create 2018 05 20 19:03
 * @desc
 **/
public class homework1 {
    static class ThreadDemo extends Thread {
        @Override
        public void run() {
            System.out.println(Thread.currentThread().getName());
        }
    }

    public static class Test1 {
        public static void main(String[] args) {
            Thread one = new Thread(new ThreadDemo(), "线程A");
            Thread two = new Thread(new ThreadDemo(), "线程B");
            one.start();
            two.start();
        }

    }

    }
